package com.ruoyi.shop.service.impl;

import com.ruoyi.shop.domain.Goods_Category;
import com.ruoyi.shop.mapper.Goods_CategoryMapper;
import com.ruoyi.shop.service.IGoods_CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Goods_CategoryServiceImpl implements IGoods_CategoryService {
    @Autowired
    private Goods_CategoryMapper goods_categoryMapper;


    @Override
    public List<Goods_Category> getGoods_Category(Integer gid) {
        return goods_categoryMapper.getGoods_Category(gid);
    }

    @Override
    public Integer insertGoods_Category(Integer gid, Integer cid) {
        return goods_categoryMapper.insertGoods_Category(gid, cid);
    }

    @Override
    public Integer deleteGoods_Category(Integer id) {
        return goods_categoryMapper.deleteGoods_Category(id);
    }

}
